<html>

<head>
<script type="text/javascript">
var c=0
var t
var b=1

function check()
{
if(b){
 b=0
 timedCount()
 }
}
function timedCount()
 {
 
 document.getElementById('txt').value=c
 c=c+1
 t=setTimeout("timedCount()",1000)
 }
</script>
</head>

<body>
	<form>
		<input type="button" value="Start count!" onClick="check()"> <input
			type="text" id="txt"> �Ľ��� W3SCHool�����ӣ���ε�����ۼ�
	</form>
</body>

</html>